package com.hxgz.steel.service;

import com.hxgz.steel.common.ServerResponse;
import com.hxgz.steel.domain.Page;
import com.hxgz.steel.dto.ProductStoreDto;

import java.math.BigDecimal;
import java.util.List;
import java.util.Map;

public interface ProductService {

    ServerResponse productList(Page page, Map<String,Object> paramMap);

    ServerResponse hotProduct(Page page);

    ServerResponse productInfo(Long id);

    ServerResponse getPriceByKind(Long productId, String model, String color, Integer count);

    ServerResponse<ProductStoreDto> getStoreByProduct(Long id );

    ServerResponse buyNow(Long userId);

    ServerResponse storeProdectList(Long id,Page page);

    ServerResponse productParams(Long id);

    ServerResponse productComments(Long id,Page page);

    ServerResponse getProductType(Long id);

    ServerResponse searchProductList(Page page,Map paramMap);

    /**
     * 通过商品ID查询店长的id
     */
    Long getUserIdByProductId(Long productId);
}
